<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加試卷</title>
</head>
<script src="/js/jquery/jquery.min.js"></script>
<body>
<div>
    <form>
        <div>
            试卷名称：
            <input type="text" id="paper_name" name="paper_name">
        </div>
        <div>
            组卷方式：
            <select name="a_type" id="a_type">
                <option value=1>自动组卷</option>
                <option value=2>手动组卷</option>
            </select>
        </div>
        <div>
            试卷类型:
            <select name="ptype_id" id="ptype_id">
                <option>--请选择--</option>
            <#list ptypeList as ptype>
                <option value="${ptype.ptype_id}">${ptype.ptype_name}</option>
            </#list>
            </select>
        </div>
        <div>
            时长：
            <input type="text" id="dura" name="dura">(分钟)
        </div>
        <div id="z_type">
            <div id="t_fen">
                题型分布：
                <div id="t_type">
                <#list typeList as type>
                    <div id="${type.type_id}" class="tt_type">
                        <input type="hidden" class="type_name" value="${type.type_name}">${type.type_name}:
                        <input type="text" class="dao" onchange="changeDao($(this).parent().attr('id'),$(this).val(),$(this).siblings().last())">
                        道
                        每道题：
                        <input type="text" class="fen">分<span class="daos" style="color: red" id="${type.type_name}"></span>
                    </div>
                </#list>
                </div>

            </div>
            <div>
                总分：
                <input type="text" id="full" name="full" readonly="true">
            </div>
            <div>
                及格分数：
                <input type="text" id="pass" name="pass">
            </div>

            <div id="t_fan">
                知识点范围：<br>
                选择题库：
                <div>
                <#--//题库-->
                    <select name="lib" id="lib" size="6" style="width: 30%">
                    <#list libList as lib>
                        <option value="${lib.lib_id}">${lib.lib_name}</option>
                    </#list>
                    </select>
                </div>
                选择知识点：
                <div>
                <#--//知识点-->
                    <select name="point" id="point" size="6" style="width: 30%">

                    </select>
                </div>
                <div>
                    <input type="button" id="addPoint" name="addPoint" value="添加知识点">
                    <input type="button" id="delePoint" name="delePoint" value="删除知识点">
                    <input type="button" id="clarePoint" name="clarePoint" value="清空知识点">
                </div>
                所选知识点：
                <div>
                <#--//所选知识点-->
                    <select id="cpoint" name="cpoint" size="6" style="width: 30%">

                    </select>
                </div>
            </div>
        </div>
        <div>
        <#--班级列表-->
            班级：
            <select id="class_id" name="class_id">
                <option>--请选择--</option>
            <#list classList as class>
                <option value="${class.class_id}">${class.class_name}</option>
            </#list>
            </select>
        </div>
        <div>
            <input type="button" id="c_pwd" name="c_pwd" value="生成密令">
            <input type="text" id="pwd" name="pwd">
        </div>
        <div>
            <button type="button" id="saveBtn" class="btn btn-success">生成试卷</button>
        </div>
    </form>
</div>
<script src="/js/paper/paper_add.js"></script>
</body>
</html>